fix a bug when merging read tasks

Avoid merging tasks against different dropping file.
Also, calculate logical offset in read task correctly.
Merge pull request #301 from ZhangZhenhua/task-merge

Tested with spot tests and regression suite.