Properly calculate offset for binary output files when checkpointing.

Binary output files deriving from checkpointed runs which have a
number of output iterations than the output buffer size require
special treatment.