Spectral properties of random matrices for stochastic block model