Your best bet is to restore from a backup. Once you've restored the files, set the 'filesystem_check_changes' to '1' in config.php and ownCloud will re-synch the database to the actual files found.
If you have another computer synching with ownCloud, you might be able to restore the files that way.