Halliburton posts higher profit in 3Q