Magnetic energy spectrum produced by turbulent dynamo: Effect of time irreversibility