write 3 bytes