rm length limit in decomp, return right write len