Replace Write::write() with Write::write_all()
The former does not guarantee the whole buffer is written; instead it returns how many bytes were written and expects the caller to try again
Staging instance, all changes can be removed at any time
The former does not guarantee the whole buffer is written; instead it returns how many bytes were written and expects the caller to try again