Some spectral properties for generalized derivations