In a separate bowl, whisk together the whole wheat flour, baking powder, baking soda, cinnamon, allspice, nutmeg and salt. Pour the dry ingredients into the wet and use a rubber spatula to mix until just combined. Then fold in the oats and the walnuts.