added write bytes
finished write_string