Fixing bug in shuffling freespace pages. Added a write operation to ensure the new header data is saved