Writes data to the file.
The data to write to the file. The length of the slice indicates how much data should be written.
The number of bytes that were written.
See Implementation
Writes data to the file.