As a temporary bodge you could cut out a matching piece from under the bed, where the hole won't show. Double-sided carpet tape can hold it down. The patch would be noticeable though, because it would have less wear and tear than the main carpet (unless you're constantly moving beds around the...