checking remaining file-system space before commiting