Write writes the number of bytes you tell it to, if you're variable is only 3 bytes long and you attempt to write 66785 bytes then if not causing an access violation you'll also write 66782 bytes of whatever is in memory after your variable.