It is perfectly safe to hang bicycles by one wheel. There is only one exception for bikes that have specialty aero carbon rims. These rims are very light with carbon that will flex if squeezed.