A finite element method for modeling coupled flow and deformation in porous fractured media