Improvements to io_write_cell_offsets()
Two issues with the current version:
- Relies on the top-level cell inhibited counts (invalid after !845 (merged)).
- Can't handle background particles (since they are mixed in with the other gpart).
Two issues with the current version: