Confronting Galactic and Extragalactic γ-ray observed by Fermi-LAT with Annihilating Dark Matter in Inert Higgs Doublet Model