Use openWritableFile

Use openWritableFile to maintain writable file link.