swap: fix swapfile read/write offset