revise closeFile

closeFile need to consider the situation that overflow file contains
more than one metadata page.