fix a bug when merging read tasks

Avoid merging tasks against different dropping file.
Also, calculate logical offset in read task correctly.