Are you sure its not the cassette rattling? If the cassette lockring is bottomed out on the freehub body and the cassette is still free to move laterally, it may be missing a spacer behind the cassette. This is a common cause of rattling sounds from the rear of the bike.