write_bytes with arbitrary length arguments