Fix parallel deflate

Fix a bug in parallel deflate with big files where output would be truncated ending in invalid zip file