Writing to OutputStream in 64 kiB blocks