Spin excitation anisotropy in the optimally isovalent-doped superconductor BaFe2(As0.7P0.3)2