Fixed issue where TapDataWriter would lose data when writing to more
than one partition.