deflate: fix copy block length check