ByteIO.write only accept byte type