Modeling Relational Data via Latent Factor Blockmodel