WriteAllBytes- It’s just a convenience method that wraps up basic operations Stream. (Create a file, write to the stream, close the stream, etc.). Use it if it suits your needs. If you need more control over basic operations, return to using Streamor similar.
It's all about using the right abstraction for the task.