support of empty files and files rewrite for NimbusFS