What type of water heater is it? Electric or Gas? There are clearance requirements, especially for a gas unit that you must adhere to. Below is a link that has some generic requirements and the specific ones will be listed on the tanks manufacuteres name plate. Most require at least a 16" clearance overhead.
http://www.codecheck.com/pg19_20mechanical.html