generic: test for non-zero used blocks while writing into a file