Fixed read/writing errors

instead of writing to a set amount of blocks before, we were consistently writing to the same block n amount of times. now i write to n amount of blocks