check that section size and resulting file size are equal