write note file when it does not exist