Is the filesystem mounted in read-only mode?
to see mount options of all mounted devices. You may have to remount it in rw mode...
If that's not the problem please post the "some error" mentioned in your initial post. Also specify exactly where you created the "test file"