write big endian int