Writes bytes to ZIP entry.
the byte array to write
the start position to write from
the number of bytes to write
on error