misc: simplify using ARRAY_SIZE and get_user

Eliminate the strlen_misc_id macro and replace with the commonly used
ARRAY_SIZE macro.

Change misc_write to use get_user and check character by character
instead of using copy_from_user.  Eliminate the need for a buffer
inside the function.