Fix offset retrieval problem for read and write having different bs ranges