Both are common, and equally understood. Myself, I prefer the 'only' nearest the part that we are 'only-ing' (in this case, a pencil), so I would use #2
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.