remove bytes within a file given an offset and a length