|WRITE(2)||System Calls Manual||WRITE(2)|
Buffer is the address of nbytes contiguous bytes which are written on the output file. The number of characters actually written is returned. It should be regarded as an error if this is not the same as requested.
Writes which are multiples of 512 characters long and begin on a 512-byte boundary in the file are more efficient than any others.