A measurement of the inclusive b -> s gamma branching ratio