https://love2d.org/wiki/love.filesystemThe file name can differ as the user enters it.
prob need to sanitize the user input. love.filesystem.write will only write to specific directories (detailed in docs above) and it sounds like the path being specified isn't one of them.