Dimension spectrum for a nonconventional ergodic average