deflate_compress: refactor writing literals into separate function
deflate_compress: refactor writing literals into separate function

Avoid too many levels of indentation.

ebiggers/libdeflate,ebiggers/libdeflate,ebiggers/libdeflate