move offset logic in buffered_reader

Link: https://github.com/GeneAssembly/biosal/issues/545
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>