Func: WriteBYTE.
Desc: Writes a BYTE to the file.
Returns the number of bytes actually written to the file.