Most of interval identification/spelling is based on sheer memorization of the distances required for each specific interval. I mean, if you don't know that a M3 consists of two notes that are four semi-tones/half-steps apart, then you're going to have a hard time writing M3's... no matter how many other tricks you come up with.
With that said... here's a little chart that might help in said memorization:
No distance between notes = Perfect Unison
One semi-tones/half-steps apart = Minor Second
Two semi-tones/half-steps apart = Major Second
Three semi-tones/half-steps = Minor Third
Four semi-tones/half-steps = Major Third
Five semi-tones/half-steps = Perfect Fourth
Six semi-tones/half-steps = Augmented Fourth/Diminished Fifth (depending on context)
Seven semi-tones/half-steps = Perfect Fifth
Eight semi-tones/half-steps = Minor Sixth
Nine semi-tones/half-steps = Major Sixth
Ten semi-tones/half-steps = Minor Seventh
Eleven semi-tones/half-steps = Major Seventh
Twelve semi-tones/half-steps = Perfect Octave
As far as diminished and augmented intervals are concerned, think of it this way:
A diminished interval (of any type) is exactly one semi-tone/half-step smaller than it's corresponding minor or perfect interval. For example, a d3 is one semi-tone/half-step smaller than a m3; a d8 is one semi-tone/half-step smaller than a P8.
An augmented interval (of any type) is exactly one semi-tone/half-step larger than it's corresponding major or perfect interval. For example, an A2 is one semi-tone/half-step larger than a M2; an A5 is one semi-tone/half-step larger than a P5.
A nice easy way to think of the larger intervals (such as sixths and sevenths) is to think of them in relation to the nearest perfect interval. Here are the four ways to think of these "larger intervals":
A minor sixth is one semi-tone/half-step larger than a P5.
A major sixth is two semi-tones/half-steps larger than a P5.
A minor seventh is two semi-tones/half-steps smaller than a P8.
A major seventh is one semi-tone/half-step smaller than a P8.
Hope that helps some!
In His love,
Nate
p.s. I assumed that you were dealing strictly with simple intervals (read: octave and smaller). If you are also having to deal with compound intervals (read: ninth and larger), please let me know... 'cause I'll try to help you out there as well.