Fix thinko

This makes the "write" test pass, too.

Next up: fix flush. And integrity. And maybe integrityhuge, too.