- bytes_to_write does not need to be volatile any longer.
- add a comment (fixme) regarding a 256 byte adjustment to a value