added Layer2Test.c, fixed a bug regarding link count in writeINode