Func: WriteUINT.
Desc: Writes an UINT to the file.
Returns the number of bytes actually written to the file.