I would stick to the ten page rule. Ask your career services office, though, if you think they might be the least bit helpful. Though, I can't imagine how something 17 pages long doesn't have a natural breaking point to cut it down to 10 for a writing sample. If you want an outsider to look at it and see if there's a place to break, PM me.