I interpolated temperature point data using IDW method using RStudio, but did not know how I can save the output file to geotiff format so that I can work in Arc/QGis.
If this is a raster you can use "writeRaster" from raster package. You need gdal to write to geotif. If you experience problems writing to geotif you can write to .asc file and use ASCII to Raster (conversion toolbox) in ArcGis to create the raster. If the output of IDW is in the right coordinates, then in either method used, the output raster would be in the right coordinates. Spatial reference info could be lost, but the raster would be in the right coords, so you will just have to project in the coordinate system. If the output of IDW is not in the right coordinates, then you would need obviously to perform georeference.