disallow multiple deflate writes

This prevents creating invalid zip files.