Added a simple internal function to write back new offsets

Unused atm, but should be needed in the near future.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>