Fix merge induced failure

check_write changed to take a size, not a binary.