refactor IOWriter#wrote_to_disk?.