squash: fix reported bytes written