reading nentries from file; writing new node - id. storing new entry number to file