Another data corruption bug

Created by: germasch

The test for it is added in PR #1303 . It does't trigger for small data sizes, but changing the data size from 10 to 10000 in MultiBlockPutZeroCopySync3 will lead to an output file with incorrect data -- running the test on a single proc is enough to show the problem.