Longitudinal spin excitations and magnetic anisotropy in antiferromagnetically ordered BaFe2As2