Measurement of the branching fraction for ψ(3770) → γ χc0