A second‐order finite difference method for fractional diffusion equation with Dirichlet and fractional boundary conditions