On an estimate related to the Hessian and application to an oblique derivative problem