writing for a file added, which also creatds id, not freed after all