write to filepath(instead of linkpath) when create symbol link failed